<?php
class companyAction extends rareAction{
	public function execute(){
		$info = service_company::getInfo();
		$this->assign('info',$info);
		if(!Tool::_getCache('isAdmin')){
			Tool::_setCache('currentID',service_menu::getCurrent('1',service_type::COMPANY));
		}
	}
	public function executePost(){
		$info = $this->getPostParam('info',array());
		//dump($info);exit;
		service_company::save($info);
		jsonReturn(1,'ok');
	}
}
?>
